import { Component, OnInit } from '@angular/core';
import {ActivatedRoute, Router} from "@angular/router";
import {Location} from '@angular/common';


@Component({
  selector: 'app-forecast-overview',
  templateUrl: './forecast-overview.component.html',
  styleUrls: ['./forecast-overview.component.css']
})
export class ForecastOverviewComponent implements OnInit {
  public tagTitle1="振动";
  public tagTitle2="摆度";
  public tagTitle3="压力脉动";
  public tagTitle4="瓦温(℃)";

  id: number ;
  constructor(
    private router: Router,
    private activeRoute : ActivatedRoute,
    private location:Location,
  ){
    this.id = +activeRoute.snapshot.params['id'];
  }

  ngOnInit() {
  }
  public goBack(flag?:boolean){
    if(flag){
      this.location.back()
    }
    else {
      this.router.navigate(['/pages/home'])
    }
  }
}
